<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The SVMModel class</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="svm.train.html">« SVM::train</a></li>
      <li style="float: right;"><a href="svmmodel.checkprobabilitymodel.html">SVMModel::checkProbabilityModel »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.svm.html">SVM</a></li>
    <li>The SVMModel class</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.svmmodel" class="reference">

 <h1 class="title">The SVMModel class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL svm &gt;= 0.1.0)</p>


  <div class="section" id="svmmodel.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    The SVMModel is the end result of the training process.
    It can be used to classify previously unseen data.
   </p>
  </div>


  <div class="section" id="svmmodel.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">SVMModel</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="svmmodel.construct.html" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code><span class="initializer"> = ?</span></span>)</div>

    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="svmmodel.checkprobabilitymodel.html" class="methodname">checkProbabilityModel</a></span>(): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="svmmodel.getlabels.html" class="methodname">getLabels</a></span>(): <span class="type">array</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="svmmodel.getnrclass.html" class="methodname">getNrClass</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="svmmodel.getsvmtype.html" class="methodname">getSvmType</a></span>(): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="svmmodel.getsvrprobability.html" class="methodname">getSvrProbability</a></span>(): <span class="type">float</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="svmmodel.load.html" class="methodname">load</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>): <span class="type">bool</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="svmmodel.predict-probability.html" class="methodname">predict_probability</a></span>(<span class="methodparam"><span class="type">array</span> <code class="parameter">$data</code></span>): <span class="type">float</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="svmmodel.predict.html" class="methodname">predict</a></span>(<span class="methodparam"><span class="type">array</span> <code class="parameter">$data</code></span>): <span class="type">float</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="svmmodel.save.html" class="methodname">save</a></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>): <span class="type">bool</span></div>

   }</div>


  </div>

 </div>

 
 













 






 






 




















 





















<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="svmmodel.checkprobabilitymodel.html">SVMModel::checkProbabilityModel</a> — Returns true if the model has probability information</li><li><a href="svmmodel.construct.html">SVMModel::__construct</a> — Construct a new SVMModel</li><li><a href="svmmodel.getlabels.html">SVMModel::getLabels</a> — Get the labels the model was trained on</li><li><a href="svmmodel.getnrclass.html">SVMModel::getNrClass</a> — Returns the number of classes the model was trained with</li><li><a href="svmmodel.getsvmtype.html">SVMModel::getSvmType</a> — Get the SVM type the model was trained with</li><li><a href="svmmodel.getsvrprobability.html">SVMModel::getSvrProbability</a> — Get the sigma value for regression types</li><li><a href="svmmodel.load.html">SVMModel::load</a> — Load a saved SVM Model</li><li><a href="svmmodel.predict-probability.html">SVMModel::predict_probability</a> — Return class probabilities for previous unseen data</li><li><a href="svmmodel.predict.html">SVMModel::predict</a> — Predict a value for previously unseen data</li><li><a href="svmmodel.save.html">SVMModel::save</a> — Save a model to a file</li></ul>
</div>
</div></div></body></html>